<!DOCTYPE html>
<style>
	body { font: 18px/1 Source Han Sans HW; text-align: center; display: flex; }
	hr { margin: 0 1em; border: dashed silver 1px; }

	body > .ruby { display: grid; grid-template-columns: auto auto; }
	.ruby > * { display: flex; justify-content: center; }
	.rb { font-size: 200%; }
	.A { color: orange; }
	i { font: inherit; border: solid 1px silver; margin: -0.5px; }
</style>

<div class=ruby>
	<div class="rb A"><i>上</i></div>
	<div class="rb B"><i>手</i></div>
	<div class="rt A"><i>じ</i><i>ょ</i><i>う</i></div>
	<div class="rt B"><i>ず</i></div>
</div>

<hr>

<div class=ruby>
	<div class="rb A"><i>下</i></div>
	<div class="rb B"><i>手</i></div>
	<div class="rt A"><i>へ</i></div>
	<div class="rt B"><i>た</i></div>
</div>
